package com.zy.config;

import com.zy.common.utils.ip.IpAddressLog;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication(scanBasePackages = {"com.zy.config.**", "com.zy.common.**"})
@MapperScan(basePackages = {"com.zy.config.**.mapper"})
public class TConfig {

    public static void main(String[] args) {
        Environment env = SpringApplication.run(TConfig.class, args).getEnvironment();
        IpAddressLog.log(env);
    }
}
